﻿<s:SurfaceWindow x:Class="Samples.ContactTracking.SurfaceWindowMain"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:s="http://schemas.microsoft.com/surface/2008"
                 Title="Samples.ContactTracking" x:Name="RootSurfaceWindow">
    <s:SurfaceWindow.Resources>
        <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg" />
        <!--<SolidColorBrush x:Key="WindowBackground" Color="White" />-->
    </s:SurfaceWindow.Resources>

    <!--TextBlock.Foreground="Black"-->
    
    <Grid Background="{StaticResource WindowBackground}" Width="1024" Height="768">
        <s:SurfaceCheckBox x:Name="chkActiver"
                           Margin="0,20,50,0"
                           Content="Activer le tracking de contact"
                           FontSize="14"
                           HorizontalAlignment="Right"
                           VerticalAlignment="Top"
                           Checked="chkActiver_Checked"
                           Unchecked="chkActiver_Unchecked" />
        <ListBox HorizontalAlignment="Left"
                 VerticalAlignment="Center"
                 Width="300"
                 Height="700"
                 Margin="34,0,0,0"
                 ItemsSource="{Binding ElementName=RootSurfaceWindow, Path=ContactsList}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="ID: " />
                        <TextBlock Text="{Binding ID}" />
                        <TextBlock Text=", X: " />
                        <TextBlock Text="{Binding X}" />
                        <TextBlock Text=", Y: " />
                        <TextBlock Text="{Binding Y}" />
                        <TextBlock Text=", Orientation: " />
                        <TextBlock Text="{Binding Orientation}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
            
        </ListBox>
    </Grid>
</s:SurfaceWindow>
